#ifndef __UserRegisterSection1_H__
#define __UserRegisterSection1_H__

#include "TLV.hpp"
#include "Packet.hpp"
#include "TcpConnection.hpp"
using namespace std;

namespace wd
{
class UserRegisterSection1
{
public:
    UserRegisterSection1(TcpConnectionPtr conn,Packet packet)
    :_conn(conn)
    ,_packet(packet)
    {}
    void process();
private:
    bool isValidUsername(const string &username);
    bool isUserExists(const string &username);
private:
   TcpConnectionPtr _conn;
   Packet _packet;

};
}





#endif

